package com.example.trafficexam2.bean;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

import java.util.Date;

/**
 * Created by Administrator on 2018/11/23/023.
 */

@DatabaseTable(tableName = "user_account")

public class Account {
    @DatabaseField(useGetSet=true,generatedId=true,columnName="id")
    private int id;//序号

    @DatabaseField(useGetSet=true, columnName = "car_id")
    private String carid;//车号

    @DatabaseField(useGetSet=true, columnName = "recharge_money")
    private String rechargemoney;//充值金额

    @DatabaseField(useGetSet=true, columnName = "operator")
    private String operator;//操作人
    @DatabaseField(useGetSet=true, columnName = "recharge_date")
    private Date rechargedate;//充值时间

    public Account(String carid, String rechargemoney, String operator, Date rechargedate) {

        this.carid = carid;
        this.rechargemoney = rechargemoney;
        this.operator = operator;
        this.rechargedate = rechargedate;
    }
    public Account() {
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getCarid() {
        return carid;
    }

    public void setCarid(String carid) {
        this.carid = carid;
    }

    public String getRechargemoney() {
        return rechargemoney;
    }

    public void setRechargemoney(String rechargemoney) {
        this.rechargemoney = rechargemoney;
    }

    public String getOperator() {
        return operator;
    }

    public void setOperator(String operator) {
        this.operator = operator;
    }

    public Date getRechargedate() {
        return rechargedate;
    }

    public void setRechargedate(Date rechargedate) {
        this.rechargedate = rechargedate;
    }

    @Override
    public String toString() {
        return "Account{" +
                "id=" + id +
                ", carid='" + carid + '\'' +
                ", rechargemoney='" + rechargemoney + '\'' +
                ", operator='" + operator + '\'' +
                ", rechargedate=" + rechargedate +
                '}';
    }


}
